gdk: No need to clear offscreen window when showing
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Sep 2010 10:11:24 +0000 (12:11 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:43 +0000 (15:11 +0200)
I don't think it's necessary to clear the backing surface when showing
the window, as we're going to repaint it anyway. If it's needed, we can
implement it again using internal APIs, as the public window_clear()
APIs are going away.

gdk/gdkoffscreenwindow.c

index c46b8f244296d0555d1212083a4f1563823dda84..09375d3f81dd92ff24bf4abafdd06ef84776a673 100644 (file)
@@ -454,8 +454,6 @@ gdk_offscreen_window_show (GdkWindow *window,
   GdkWindowObject *private = (GdkWindowObject *)window;
   GdkRectangle area = { 0, 0, private->width, private->height };
 
-  gdk_window_clear_area (window, 0, 0,
-                        private->width, private->height);
   gdk_window_invalidate_rect (window, &area, FALSE);
 }